package com.yunqiao.service.api.mapper;

import cn.hutool.core.lang.Dict;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yunqiao.service.api.entity.OrderEntity;
import com.yunqiao.service.api.vo.OrdersVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 订单表
 *
 * @author Crocutax
 * @email wangxw725@163.com
 * @date 2019-03-02 15:03:56
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {

    BigDecimal getTotalPrice(@Param("ew") QueryWrapper ew);

    IPage<OrdersVo> orderPage(IPage<OrdersVo> page, @Param("ew") Wrapper<OrderEntity> queryWrapper);

    OrdersVo getDetails(@Param("id") Long id);

    Dict getFiducialPoint(@Param("userId") Long userId);

    List<OrdersVo> selectOrderListByLatAndLag(Map<String,Object> map);
}
